package com.jiyun.model.day10;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author yangYingJie
 * @Date 2023/8/7 15：50
 **/
@Data
@ToString
public class Topic {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer tid;
    private Integer uid;
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
    private String remark;
    private Integer status;
    private String trues;
    private Integer grade;
    @TableField(exist = false)
    @Transient
    private String hobby;
    @TableField(exist = false)
    @Transient
    private String ids;

}
